package com.mall.web.controller.content.app;

import com.mall.common.core.controller.BaseController;
import com.mall.common.core.domain.AjaxResult;
import com.mall.content.article.service.IArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 文章管理Controller
 * 
 * @author mall
 * @date 2024-05-17
 */
@RestController
@RequestMapping("/app/content/article")
public class AppArticleController extends BaseController
{
    @Autowired
    private IArticleService articleService;

    /**
     * 根据文章标题获取文章详细信息
     */
    @GetMapping(value = "/getOneByTitle/{title}")
    public AjaxResult getOneByTitle(@PathVariable("title") String title)
    {
        return success(articleService.selectArticleByTitle(title));
    }

}
